const {defineConfig} = require('@vue/cli-service');
require('events').EventEmitter.defaultMaxListeners = 0;
module.exports = defineConfig({
    transpileDependencies: true,
    devServer: {
        proxy: {
            "baseInfo": {
                target: "http://localhost:8081", ws: false, changeOrigin: true, pathRewrite: {
                    "^baseInfo": "/baseInfo"
                }
            },
            "create": {
                target: "http://localhost:8081", ws: false, changeOrigin: true, pathRewrite: {
                    "^create": "/create"
                }
            },
            "modify": {
                target: "http://localhost:8081", ws: false, changeOrigin: true, pathRewrite: {
                    "^modify": "/modify"
                }
            },
            "remove": {
                target: "http://localhost:8081", ws: false, changeOrigin: true, pathRewrite: {
                    "^remove": "/remove"
                }
            },
            "start": {
                target: "http://localhost:8081", ws: false, changeOrigin: true, pathRewrite: {
                    "^start": "/start"
                }
            },
            "stop": {
                target: "http://localhost:8081", ws: false, changeOrigin: true, pathRewrite: {
                    "^stop": "/stop"
                }
            },
            "hostDetails": {
                target: "http://localhost:8081", ws: false, changeOrigin: true, pathRewrite: {
                    "^hostDetails": "/hostDetails"
                }
            },
            "ui_res": {
                target: "http://localhost:8081", ws: false, changeOrigin: true, pathRewrite: {
                    "^ui_res": "/ui_res"
                }
            },
            "softwareSetting": {
                target: "http://localhost:8081", ws: false, changeOrigin: true, pathRewrite: {
                    "^/softwareSetting": "/softwareSetting"
                }
            },
            "ioVM_data": {
                target: "http://localhost:8081", ws: false, changeOrigin: true, pathRewrite: {
                    "^/ioVM_data": "/ioVM_data"
                }
            },
            "logging": {
                target: "http://localhost:8081", ws: false, changeOrigin: true, pathRewrite: {
                    "^/logging": "/logging"
                }
            },
            "scb": {
                target: "http://localhost:8081",
                ws: true,
                changeOrigin: true,
                pathRewrite: {
                    "^/scb": "/scb"
                }
            }
        }
    }
})